const { Service } = require("egg");

class UserService extends Service {
    async create(data) {
        const { app } = this;
        // const { username, password } = data;
        try {
            const user = await app.mysql.insert("user", {
                username: "hikaru",
                password: "123456",
            });
            return user;
        } catch (err) {
            console.log(err);
        }
    }
}
module.exports = UserService;
